package com.zhiyou.crud.service;

import com.zhiyou.crud.bean.Back;
import com.zhiyou.crud.bean.Project;
import com.zhiyou.crud.bean.Type;

import java.util.List;

public interface ProjectPublishService {

    //得到所有项目类型
    public List<Type> getAllTypes();

    boolean getRealInfo(Integer uno);

    Project getProjectTemp(Integer uno);

    //更新保存的草稿类型的项目
    boolean updateTempProject(Project project);

    List<Back> getBacksByPno(Integer pno);

    int publishProject(Project project);

    int deleteBack(Back back);

    int addBack(Back back);

    int addProject(Project project);

}
